package Lesson14;

public class PersonDemo {
	
	public static void main(String[] args)
	{
		int x = 3;
		String s = new String();
		
		Person ivan = new Person();
		Person mariika = new Person();
		Person milcho = new Person();
		milcho.age = 29;
		milcho.name = "Milcho";
		
		ivan.name = "Ivan";
		ivan.age = 25;
		ivan.presonalNumber = "8612025281";
		ivan.sex = 'm';
		ivan.weight = 80.5;
		ivan.friend = milcho;
		
	/*	System.out.println(p.name);
		System.out.println(p.age);
		System.out.println(p.presonalNumber);
		System.out.println(p.sex);
		System.out.println(p.weight);
	*/	
		mariika.name = "Maria";
		mariika.age = 21;
		mariika.presonalNumber = "8203301201";
		mariika.sex = 'f';
		mariika.weight = 55.0;
	/*	
		System.out.println(p1.name);
		System.out.println(p1.age);
		System.out.println(p1.presonalNumber);
		System.out.println(p1.sex);
		System.out.println(p1.weight);
		*/
		
		System.out.println("Ivan's health = " + ivan.health);
		System.out.println("Ivan's hunger = " + ivan.starvationStatus);
		
		System.out.println("Maria's health = " + mariika.health);
		System.out.println("Maria's hunger = " + mariika.starvationStatus);
		
		ivan.eat(10);
		mariika.walk();
		
		System.out.println();
		
		System.out.println("Ivan's health = " + ivan.health);
		System.out.println("Ivan's hunger = " + ivan.starvationStatus);
		
		System.out.println("Maria's health = " + mariika.health);
		System.out.println("Maria's hunger = " + mariika.starvationStatus);
	}

}
